package com.shanzmoo.stm.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.stm.entity.StmSysRoleMenuEntity;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 仓储用户系统角色菜单关联表 保存对象
 *
 * @author Gzhao 2021-03-10
 */
@Data
@ApiModel("仓储用户系统角色菜单关联表-保存对象")
public class StmSysRoleMenuSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "菜单主键")
    private Integer menuId;

    public StmSysRoleMenuEntity convertEntity() {
        StmSysRoleMenuEntity target = new StmSysRoleMenuEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
